package com.hoshiicloud.mallshop.feign;

import com.hoshiicloud.common.rpc.Response;
import com.hoshiicloud.mallshop.feign.hystrix.ShopAuthFeignServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;


/**
 * @program: hoshiibuy
 * @description: 登录验证服务
 * @author: Mr.wu
 * @create: 2019-06-24 14:20
 **/
@FeignClient(name = "hoshiicloud-auth",fallbackFactory = ShopAuthFeignServiceFallback.class)
public interface ShopAuthFeignService {
    @PostMapping(value = "/mall-shop-login")
    Response mallShopLogin(@RequestParam("userName") String userName,
                    @RequestParam("password") String password,
                           @RequestParam("userType") String userType, @RequestParam("storeId") Long storeId);
}
